package com.rivulet.doj_backend.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * {一句话形容此class功能}
 *
 * @author xujiac
 * @create 2021/4/1
 * @since 1.0.0
 */
@Component
public interface EmailMapper {
    //t_eamil_checkCode

    @Select("select code from t_eamil_checkCode where username = #{username}")
    public String getEmailCheckCode(@Param("username")String username);

    @Insert("insert into t_eamil_checkCode (username,code) values (#{username},#{code})")
    public void setEmailCheckCode(@Param("username")String username,@Param("code")String code);
}
